<!DOCTYPE html>
{% extends "base1.html" %}

{% block content %}
<h1>出版社信息</h1>
<form action="/book/publisher/" method="post">
    <p>名字<input type="text" name="name"></p>
    <p>地址<input type="text" name="address"></p>
    <p>城市<input type="text" name="city"></p>
    <p>国家<input type="text" name="country"></p>
    <p>网站<input type="text" name="website"></p>
    <p><input type="submit" value="submit"></p>
     {%csrf_token%}
</form>

<hr>
<h1>已登记的出版社</h1>
<table border="1">
    <tr>
        <td>名字</td>
        <td>地址</td>
        <td>城市</td>
        <td>国家</td>
        <td>网站</td>
    </tr>
    {% for i in info_list %}
    <tr>
        <td>{{ i.name }}</td>
        <td>{{ i.address }}</td>
        <td>{{ i.city }}</td>
        <td>{{ i.country }}</td>
        <td>{{ i.website }}</td>
    </tr>
    {% endfor %}
</table>
{% endblock %}
